<extend name="Public/base"/>

<block name="body">

    <div class="main-title">
        <h2>上传表情包</h2>
    </div>
     <div class="tab-content with-padding">
    <div class="col-md-12">

    <form action="{:U('admin/expression/upload')}" enctype="multipart/form-data" method="post">
        <div class="controls clearfix" style="margin-bottom:10px">
            <span class="pull-left btn btn-primary" id="upload_button">上传文件</span>
            <span class="pull-left" style="margin-left:10px;line-height:30px" id="show_info"></span>
            <input type="file" name="pkg" style="display:none" onchange="$('#show_info').html($(this).val())">
        </div>

        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
    </div>
    </div>
</block>

<block name="script">
<script type="text/javascript">
$(function(){
    $('#upload_button').click(function(){
        $('input[type=file]').click();
    });

    Think.setValue("type", {$info.type|default=0});
    Think.setValue("group", {$info.group|default=0});
    //导航高亮
    highlight_subnav('{:U('Config/index')}');
});
</script>
</block>




